package com.wang.springcloud.dao;

import com.wang.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DeptDao {

    //增加部门
    public Boolean addDept(Dept dept);

    //根据主键id，查询Dept
    public Dept queryById(Long id);

    //查询所有部门
    public List<Dept> queryAll();


}
